package com.hu.bgp.client.presenter;

import com.hu.bgp.client.place.Place;
import com.hu.bgp.framework.clientapi.util.Firebug;

public class GameSessionPlace extends Place
{
	public static final String PLACEID = "gamelist";
	private static final String GAMETYPE = "gametype";
	
	private String gameAlias;
	
	public GameSessionPlace(String state) {
		super(state);
		//TODO Debug
		Firebug.debug("GameSessionPlace: " + state);

		gameAlias = super.getAttributes().get(GAMETYPE);
	}
	public GameSessionPlace()
	{
		super("");
	}
	
	public void setGameAlias(String alias)
	{
		gameAlias = alias;
	}
	public String getGameAlias()
	{
		return gameAlias;
	}

	@Override
	public String asURI() {
		// TODO Auto-generated method stub
		return PLACEID + constants.attributesSeperator() + GAMETYPE + constants.keyValuaSeperator() + gameAlias;
	}



}
